package com.homework.Demo6_14.Work2.h1;

public class Circle implements ShapePara {

    public double radius;//表示圆的半径
    private double x;//表示圆心的横坐标
    protected  double y;//表示圆心的纵坐标

    public Circle(double radius) {
        this.radius = radius;
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
    public void setCenter(double x, double y){
        this.x=x;
        this.y=y;
    }

    @Override
    public int getArea() {
        return (int)(3.14*radius*radius);
    }

    @Override
    public int getCircumference() {
        return (int)(3.14*radius*2);
    }
}
